xen/arm32: Add an helper to invalidate all instruction caches
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 22 Aug 2016 15:20:03 +0000 (11:20 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 23 Sep 2016 16:39:45 +0000 (12:39 -0400)
commitefed19238c1bf3bb85989648a307ba3232ad96f4
tree222b93fb4e53a34415b07b456f22788dd456b4fd
parentcbe2213f60effc1a59b87deeb491254173874c8e
xen/arm32: Add an helper to invalidate all instruction caches

This is similar to commit fb9d877a9c0f3d4d15db8f6e0c5506ea641862c6
"xen/arm64: Add an helper to invalidate all instruction caches"
except it is on ARM32 side.

When we are flushing the cache we are most likely also want
to flush the branch predictor too. Hence we add this.

And we also need to follow this with dsb()/isb() which are
memory barriers().

Reviewed-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/include/asm-arm/arm32/page.h